import getlink from "@/api/getapi.js"
let HotM = {
    state:{
        hot:""
    },
    mutations:{
        UPHOTDATA(state,payload){
            state.hot=payload
        }
    },
    actions:{
        LINK_HOT_DATA(conhot,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.hot,"hot")
                conhot.commit("UPHOTDATA",ok.data.hot)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default HotM;
